with open(r'C:\Users\hsk\PycharmProjects\vdcode5\venv\data.csv','r',encoding='utf-8') as f:
    str1=f.readline()
    print(str1)
    str2=str1.replace(', ,',',')
    str3=str2.replace('操作,','操作, ,')
    print(str2)
    print(str3)

with open(r'C:\Users\hsk\PycharmProjects\vdcode5\venv\data.csv','w',encoding='utf-8') as f:
    f.write(str3)

with open(r'C:\Users\hsk\PycharmProjects\vdcode5\venv\data.csv','a',encoding='utf-8') as f:
    f.write(str3)
    f.write('ok')